package com.takeoff.iot.modbus.netty.data;

import com.ruoyi.common.modbus.data.MiiHeartBeatData;
import lombok.Getter;

/**
 * 心跳数据
 * 公司名称：未可自动化 <br/>
 * 作者：weikeauto <br/>
 */
@Getter
public class HeartBeatData extends ReceiveDataEvent {

    private String deviceGroup;

    public HeartBeatData(Object source, int command, MiiHeartBeatData data) {
        super(source, command, data.device(), data.shelf(), data.slot());
        this.deviceGroup = data.deviceGroup();
    }

}
